import 'package:flutter_nb_net/flutter_net.dart';

class DeviceConfigResp extends BaseNetModel {
  int? code;
  String? msg;
  DeviceConfigData? data;

  DeviceConfigResp({this.code, this.msg, this.data});

  @override
  fromJson(Map<String, dynamic> json) {
    return DeviceConfigResp(
      code: json['code'],
      msg: json['msg'],
      data: json['data'] == null ? null : DeviceConfigData().fromJson(json['data']),
    );
  }

}

class DeviceConfigData extends BaseNetModel {
  bool? showRechargeFlowButton;
  String? rechargeFlowPage;

  DeviceConfigData({this.showRechargeFlowButton, this.rechargeFlowPage});

  @override
  fromJson(Map<String, dynamic> json) {
    return DeviceConfigData(
      showRechargeFlowButton: json['showRechargeFlowButton'],
      rechargeFlowPage: json['rechargeFlowPage'],
    );
  }
}